package com.news.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.news.model.common.dtos.ResponseResult;
import com.news.model.wemedia.dtos.WmNewsDto;
import com.news.model.wemedia.dtos.WmNewsPageReqDto;
import com.news.model.wemedia.dtos.WmNewsPersonDto;
import com.news.model.wemedia.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {

    /**
     * 条件查询文章列表
     * @param dto
     * @return
     */
    public ResponseResult findList(WmNewsPageReqDto dto);

    /**
     * 发布修改文章或保存为草稿
     * @param dto
     * @return
     */
    public ResponseResult submitNews(WmNewsDto dto);

    /**
     * 查看文章详情
     * @param id
     * @return
     */
    ResponseResult getArticleMessage(Integer id);

    /**
     * 文章上下架
     * @param wmNewsDto
     * @return
     */
    ResponseResult downOrUp(WmNewsDto wmNewsDto);

    /**
     * 人工审核文章
     * @param wmNewsPersonDto
     * @return
     */
    ResponseResult listPerson(WmNewsPersonDto wmNewsPersonDto);

    /**
     * 文章审核成功
     * @param wmNewsPersonDto
     * @return
     */
    ResponseResult setAuthPass(WmNewsPersonDto wmNewsPersonDto);

    /**
     * 文章审核失败
     * @param wmNewsService
     * @param wmNewsPersonDto
     * @return
     */
    ResponseResult setAuthFail(WmNewsPersonDto wmNewsPersonDto);
}
